package cn.tl.org.controller;

import cn.tl.org.domain.Dept;
import cn.tl.org.domain.Employee;
import cn.tl.org.query.DeptQuery;
import cn.tl.org.service.IDeptService;
import cn.tl.org.service.IEmployeeService;
import cn.tl.org.utils.AjaxResult;
import cn.tl.org.utils.QueryResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@RestController
@RequestMapping("/employee")
@Api(tags = "员工维护")
//@CrossOrigin
public class EmployeeController {
    @Autowired
    private IEmployeeService employeeService;
    @GetMapping
    public List<Employee> findAll(){
        return employeeService.findAll();
    }






}
